<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
<title>Compute Library: NodeContext Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Compute Library
   &#160;<span id="projectnumber">18.03</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.xhtml"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.xhtml"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.xhtml"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.xhtml"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="inherits.xhtml"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.xhtml"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classarm__compute_1_1graph_1_1_node_context.xhtml','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">NodeContext Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Node Context class.  
 <a href="classarm__compute_1_1graph_1_1_node_context.xhtml#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_node_context_8h_source.xhtml">NodeContext.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6e6c4575b36f55148dd5b9d6b80e1e31"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a6e6c4575b36f55148dd5b9d6b80e1e31">NodeContext</a> (<a class="el" href="namespacearm__compute_1_1graph.xhtml#a9a2c9c31d675b34f6ec35cc1ca89e047">OperationType</a> <a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#aede501005c91e527731f91d7b1093922">operation</a>)</td></tr>
<tr class="memdesc:a6e6c4575b36f55148dd5b9d6b80e1e31"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default Constructor.  <a href="#a6e6c4575b36f55148dd5b9d6b80e1e31">More...</a><br /></td></tr>
<tr class="separator:a6e6c4575b36f55148dd5b9d6b80e1e31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6808972173f9b2e2a528235c2f22c79c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a6808972173f9b2e2a528235c2f22c79c">set_target</a> (<a class="el" href="namespacearm__compute_1_1graph.xhtml#a8d5e69e9a697c2007e241eb413c9833b">TargetHint</a> <a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a86940a4c06b29e89197d29e3febda499">target</a>)</td></tr>
<tr class="memdesc:a6808972173f9b2e2a528235c2f22c79c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the execution target of the node.  <a href="#a6808972173f9b2e2a528235c2f22c79c">More...</a><br /></td></tr>
<tr class="separator:a6808972173f9b2e2a528235c2f22c79c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a092fa0a514eef844785e30916a2cf8bd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a092fa0a514eef844785e30916a2cf8bd">add_input</a> (<a class="el" href="classarm__compute_1_1_i_tensor.xhtml">arm_compute::ITensor</a> *<a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a1b89c6ba45a64c70abe76c342a85ab88">input</a>)</td></tr>
<tr class="memdesc:a092fa0a514eef844785e30916a2cf8bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds an input tensor to the context.  <a href="#a092fa0a514eef844785e30916a2cf8bd">More...</a><br /></td></tr>
<tr class="separator:a092fa0a514eef844785e30916a2cf8bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93bbbe62b0f94909ba481b02fc785416"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a93bbbe62b0f94909ba481b02fc785416">add_output</a> (<a class="el" href="classarm__compute_1_1_i_tensor.xhtml">arm_compute::ITensor</a> *<a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a5c38ca4345b9c6364eac526d54d3ad44">output</a>)</td></tr>
<tr class="memdesc:a93bbbe62b0f94909ba481b02fc785416"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds an output to the context.  <a href="#a93bbbe62b0f94909ba481b02fc785416">More...</a><br /></td></tr>
<tr class="separator:a93bbbe62b0f94909ba481b02fc785416"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b8e8981665590668761d9c3178f4720"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a4b8e8981665590668761d9c3178f4720"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a4b8e8981665590668761d9c3178f4720">add_parameter</a> (std::string name, T <a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a72eef7664b86c927e02ec5e67b8e8230">parameter</a>)</td></tr>
<tr class="memdesc:a4b8e8981665590668761d9c3178f4720"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a parameter to the context.  <a href="#a4b8e8981665590668761d9c3178f4720">More...</a><br /></td></tr>
<tr class="separator:a4b8e8981665590668761d9c3178f4720"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aede501005c91e527731f91d7b1093922"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearm__compute_1_1graph.xhtml#a9a2c9c31d675b34f6ec35cc1ca89e047">OperationType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#aede501005c91e527731f91d7b1093922">operation</a> () const </td></tr>
<tr class="memdesc:aede501005c91e527731f91d7b1093922"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the operation of this node.  <a href="#aede501005c91e527731f91d7b1093922">More...</a><br /></td></tr>
<tr class="separator:aede501005c91e527731f91d7b1093922"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86940a4c06b29e89197d29e3febda499"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearm__compute_1_1graph.xhtml#a8d5e69e9a697c2007e241eb413c9833b">TargetHint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a86940a4c06b29e89197d29e3febda499">target</a> () const </td></tr>
<tr class="memdesc:a86940a4c06b29e89197d29e3febda499"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the execution target of this node.  <a href="#a86940a4c06b29e89197d29e3febda499">More...</a><br /></td></tr>
<tr class="separator:a86940a4c06b29e89197d29e3febda499"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b89c6ba45a64c70abe76c342a85ab88"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1_i_tensor.xhtml">arm_compute::ITensor</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a1b89c6ba45a64c70abe76c342a85ab88">input</a> (size_t idx) const </td></tr>
<tr class="memdesc:a1b89c6ba45a64c70abe76c342a85ab88"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns input tensor of a given index.  <a href="#a1b89c6ba45a64c70abe76c342a85ab88">More...</a><br /></td></tr>
<tr class="separator:a1b89c6ba45a64c70abe76c342a85ab88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c38ca4345b9c6364eac526d54d3ad44"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1_i_tensor.xhtml">arm_compute::ITensor</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a5c38ca4345b9c6364eac526d54d3ad44">output</a> (size_t idx) const </td></tr>
<tr class="memdesc:a5c38ca4345b9c6364eac526d54d3ad44"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns output tensor of a given index.  <a href="#a5c38ca4345b9c6364eac526d54d3ad44">More...</a><br /></td></tr>
<tr class="separator:a5c38ca4345b9c6364eac526d54d3ad44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72eef7664b86c927e02ec5e67b8e8230"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a72eef7664b86c927e02ec5e67b8e8230"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a72eef7664b86c927e02ec5e67b8e8230">parameter</a> (std::string name) const </td></tr>
<tr class="memdesc:a72eef7664b86c927e02ec5e67b8e8230"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the parameter with the given name.  <a href="#a72eef7664b86c927e02ec5e67b8e8230">More...</a><br /></td></tr>
<tr class="separator:a72eef7664b86c927e02ec5e67b8e8230"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7db9a1c221b414ff11bd4a5b7b97ec8d"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a7db9a1c221b414ff11bd4a5b7b97ec8d">num_inputs</a> () const </td></tr>
<tr class="memdesc:a7db9a1c221b414ff11bd4a5b7b97ec8d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns number of inputs.  <a href="#a7db9a1c221b414ff11bd4a5b7b97ec8d">More...</a><br /></td></tr>
<tr class="separator:a7db9a1c221b414ff11bd4a5b7b97ec8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20ee33c4a581d8d3507dbb898d47d733"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a20ee33c4a581d8d3507dbb898d47d733">num_outputs</a> () const </td></tr>
<tr class="memdesc:a20ee33c4a581d8d3507dbb898d47d733"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns number of output.  <a href="#a20ee33c4a581d8d3507dbb898d47d733">More...</a><br /></td></tr>
<tr class="separator:a20ee33c4a581d8d3507dbb898d47d733"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Node Context class. </p>
<p>Node context class is used to hold all the parameters required by a node to execute </p>

<p>Definition at line <a class="el" href="_node_context_8h_source.xhtml#l00044">44</a> of file <a class="el" href="_node_context_8h_source.xhtml">NodeContext.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a6e6c4575b36f55148dd5b9d6b80e1e31"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml">NodeContext</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacearm__compute_1_1graph.xhtml#a9a2c9c31d675b34f6ec35cc1ca89e047">OperationType</a>&#160;</td>
          <td class="paramname"><em>operation</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Default Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">operation</td><td>Name of the operation </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_node_context_8h_source.xhtml#l00051">51</a> of file <a class="el" href="_node_context_8h_source.xhtml">NodeContext.h</a>.</p>

<p>References <a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a092fa0a514eef844785e30916a2cf8bd">NodeContext::add_input()</a>, <a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a93bbbe62b0f94909ba481b02fc785416">NodeContext::add_output()</a>, <a class="el" href="_node_context_8h_source.xhtml#l00127">NodeContext::add_parameter()</a>, <a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a1b89c6ba45a64c70abe76c342a85ab88">NodeContext::input()</a>, <a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a7db9a1c221b414ff11bd4a5b7b97ec8d">NodeContext::num_inputs()</a>, <a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a20ee33c4a581d8d3507dbb898d47d733">NodeContext::num_outputs()</a>, <a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#aede501005c91e527731f91d7b1093922">NodeContext::operation()</a>, <a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a5c38ca4345b9c6364eac526d54d3ad44">NodeContext::output()</a>, <a class="el" href="_node_context_8h_source.xhtml#l00134">NodeContext::parameter()</a>, <a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a6808972173f9b2e2a528235c2f22c79c">NodeContext::set_target()</a>, and <a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a86940a4c06b29e89197d29e3febda499">NodeContext::target()</a>.</p>
<div class="fragment"><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        : _operation(<a class="code" href="classarm__compute_1_1graph_1_1_node_context.xhtml#aede501005c91e527731f91d7b1093922">operation</a>), _target(<a class="code" href="namespacearm__compute_1_1graph.xhtml#a8d5e69e9a697c2007e241eb413c9833ba3d241dc381afd54422199a5e6864275a">TargetHint::DONT_CARE</a>), _inputs(), _outputs(), _parameters() {};</div><div class="ttc" id="namespacearm__compute_1_1graph_xhtml_a8d5e69e9a697c2007e241eb413c9833ba3d241dc381afd54422199a5e6864275a"><div class="ttname"><a href="namespacearm__compute_1_1graph.xhtml#a8d5e69e9a697c2007e241eb413c9833ba3d241dc381afd54422199a5e6864275a">arm_compute::graph::TargetHint::DONT_CARE</a></div><div class="ttdoc">Run node in any device. </div></div>
<div class="ttc" id="classarm__compute_1_1graph_1_1_node_context_xhtml_aede501005c91e527731f91d7b1093922"><div class="ttname"><a href="classarm__compute_1_1graph_1_1_node_context.xhtml#aede501005c91e527731f91d7b1093922">arm_compute::graph::NodeContext::operation</a></div><div class="ttdeci">OperationType operation() const </div><div class="ttdoc">Returns the operation of this node. </div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a092fa0a514eef844785e30916a2cf8bd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void add_input </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classarm__compute_1_1_i_tensor.xhtml">arm_compute::ITensor</a> *&#160;</td>
          <td class="paramname"><em>input</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds an input tensor to the context. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">input</td><td>Input to add </td></tr>
  </table>
  </dd>
</dl>

<p>Referenced by <a class="el" href="_node_context_8h_source.xhtml#l00051">NodeContext::NodeContext()</a>.</p>

</div>
</div>
<a class="anchor" id="a93bbbe62b0f94909ba481b02fc785416"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void add_output </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classarm__compute_1_1_i_tensor.xhtml">arm_compute::ITensor</a> *&#160;</td>
          <td class="paramname"><em>output</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds an output to the context. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">output</td><td>Output to add </td></tr>
  </table>
  </dd>
</dl>

<p>Referenced by <a class="el" href="_node_context_8h_source.xhtml#l00051">NodeContext::NodeContext()</a>.</p>

</div>
</div>
<a class="anchor" id="a4b8e8981665590668761d9c3178f4720"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void add_parameter </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>parameter</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Adds a parameter to the context. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>Parameter name </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">parameter</td><td>Parameter to add </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_node_context_8h_source.xhtml#l00127">127</a> of file <a class="el" href="_node_context_8h_source.xhtml">NodeContext.h</a>.</p>

<p>References <a class="el" href="core_2_error_8h_source.xhtml#l00297">ARM_COMPUTE_ERROR_ON_MSG</a>, and <a class="el" href="_node_context_8h_source.xhtml#l00134">NodeContext::parameter()</a>.</p>

<p>Referenced by <a class="el" href="_node_context_8h_source.xhtml#l00051">NodeContext::NodeContext()</a>.</p>
<div class="fragment"><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;{</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <a class="code" href="core_2_error_8h.xhtml#a5bbdcf574d3f5e412fa6a1117911e67b">ARM_COMPUTE_ERROR_ON_MSG</a>(_parameters.find(name) != _parameters.end(), <span class="stringliteral">&quot;Parameter already exists!&quot;</span>);</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    _parameters[name] = support::cpp14::make_unique&lt;NodeParameter&lt;T&gt;&gt;(name, <a class="code" href="classarm__compute_1_1graph_1_1_node_context.xhtml#a72eef7664b86c927e02ec5e67b8e8230">parameter</a>);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1graph_1_1_node_context_xhtml_a72eef7664b86c927e02ec5e67b8e8230"><div class="ttname"><a href="classarm__compute_1_1graph_1_1_node_context.xhtml#a72eef7664b86c927e02ec5e67b8e8230">arm_compute::graph::NodeContext::parameter</a></div><div class="ttdeci">T parameter(std::string name) const </div><div class="ttdoc">Returns the parameter with the given name. </div><div class="ttdef"><b>Definition:</b> <a href="_node_context_8h_source.xhtml#l00134">NodeContext.h:134</a></div></div>
<div class="ttc" id="core_2_error_8h_xhtml_a5bbdcf574d3f5e412fa6a1117911e67b"><div class="ttname"><a href="core_2_error_8h.xhtml#a5bbdcf574d3f5e412fa6a1117911e67b">ARM_COMPUTE_ERROR_ON_MSG</a></div><div class="ttdeci">#define ARM_COMPUTE_ERROR_ON_MSG(cond,...)</div><div class="ttdef"><b>Definition:</b> <a href="core_2_error_8h_source.xhtml#l00297">Error.h:297</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a1b89c6ba45a64c70abe76c342a85ab88"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1_i_tensor.xhtml">arm_compute::ITensor</a>* input </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>idx</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns input tensor of a given index. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">idx</td><td>Index of the input tensor</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer the requested input tensor else nullptr </dd></dl>

<p>Referenced by <a class="el" href="_node_context_8h_source.xhtml#l00051">NodeContext::NodeContext()</a>.</p>

</div>
</div>
<a class="anchor" id="a7db9a1c221b414ff11bd4a5b7b97ec8d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t num_inputs </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns number of inputs. </p>
<dl class="section return"><dt>Returns</dt><dd>Number of inputs </dd></dl>

<p>Referenced by <a class="el" href="_node_context_8h_source.xhtml#l00051">NodeContext::NodeContext()</a>.</p>

</div>
</div>
<a class="anchor" id="a20ee33c4a581d8d3507dbb898d47d733"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t num_outputs </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns number of output. </p>
<dl class="section return"><dt>Returns</dt><dd>Number of outputs </dd></dl>

<p>Referenced by <a class="el" href="_node_context_8h_source.xhtml#l00051">NodeContext::NodeContext()</a>.</p>

</div>
</div>
<a class="anchor" id="aede501005c91e527731f91d7b1093922"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacearm__compute_1_1graph.xhtml#a9a2c9c31d675b34f6ec35cc1ca89e047">OperationType</a> operation </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the operation of this node. </p>
<dl class="section return"><dt>Returns</dt><dd>The operation type </dd></dl>

<p>Referenced by <a class="el" href="_node_context_8h_source.xhtml#l00051">NodeContext::NodeContext()</a>.</p>

</div>
</div>
<a class="anchor" id="a5c38ca4345b9c6364eac526d54d3ad44"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1_i_tensor.xhtml">arm_compute::ITensor</a>* output </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>idx</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns output tensor of a given index. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">idx</td><td>Index of the output tensor</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer the requested output tensor else nullptr </dd></dl>

<p>Referenced by <a class="el" href="_node_context_8h_source.xhtml#l00051">NodeContext::NodeContext()</a>.</p>

</div>
</div>
<a class="anchor" id="a72eef7664b86c927e02ec5e67b8e8230"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T parameter </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the parameter with the given name. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>Parameter name</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The requested parameter else an empty object </dd></dl>

<p>Definition at line <a class="el" href="_node_context_8h_source.xhtml#l00134">134</a> of file <a class="el" href="_node_context_8h_source.xhtml">NodeContext.h</a>.</p>

<p>References <a class="el" href="core_2_error_8h_source.xhtml#l00306">ARM_COMPUTE_ERROR_ON</a>, and <a class="el" href="hwc_8hpp_source.xhtml#l00278">value</a>.</p>

<p>Referenced by <a class="el" href="_node_context_8h_source.xhtml#l00127">NodeContext::add_parameter()</a>, and <a class="el" href="_node_context_8h_source.xhtml#l00051">NodeContext::NodeContext()</a>.</p>
<div class="fragment"><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;{</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keyword">auto</span> it = _parameters.find(name);</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <a class="code" href="core_2_error_8h.xhtml#a54a6080c9f4df1f908e57a9bbb46f5da">ARM_COMPUTE_ERROR_ON</a>(it == _parameters.end());</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span>NodeParameter&lt;T&gt; *<span class="keyword">&gt;</span>(it-&gt;second.get())-&gt;<a class="code" href="hwc_8hpp.xhtml#a0f61d63b009d0880a89c843bd50d8d76">value</a>();</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;}</div><div class="ttc" id="core_2_error_8h_xhtml_a54a6080c9f4df1f908e57a9bbb46f5da"><div class="ttname"><a href="core_2_error_8h.xhtml#a54a6080c9f4df1f908e57a9bbb46f5da">ARM_COMPUTE_ERROR_ON</a></div><div class="ttdeci">#define ARM_COMPUTE_ERROR_ON(cond)</div><div class="ttdoc">If the condition is true then an error message is printed and an exception thrown. </div><div class="ttdef"><b>Definition:</b> <a href="core_2_error_8h_source.xhtml#l00306">Error.h:306</a></div></div>
<div class="ttc" id="hwc_8hpp_xhtml_a0f61d63b009d0880a89c843bd50d8d76"><div class="ttname"><a href="hwc_8hpp.xhtml#a0f61d63b009d0880a89c843bd50d8d76">value</a></div><div class="ttdeci">void * value</div><div class="ttdef"><b>Definition:</b> <a href="hwc_8hpp_source.xhtml#l00278">hwc.hpp:278</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a6808972173f9b2e2a528235c2f22c79c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void set_target </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacearm__compute_1_1graph.xhtml#a8d5e69e9a697c2007e241eb413c9833b">TargetHint</a>&#160;</td>
          <td class="paramname"><em>target</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the execution target of the node. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">target</td><td>Execution target of the node </td></tr>
  </table>
  </dd>
</dl>

<p>Referenced by <a class="el" href="_node_context_8h_source.xhtml#l00051">NodeContext::NodeContext()</a>.</p>

</div>
</div>
<a class="anchor" id="a86940a4c06b29e89197d29e3febda499"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacearm__compute_1_1graph.xhtml#a8d5e69e9a697c2007e241eb413c9833b">TargetHint</a> target </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the execution target of this node. </p>
<dl class="section return"><dt>Returns</dt><dd>The execution target </dd></dl>

<p>Referenced by <a class="el" href="_node_context_8h_source.xhtml#l00051">NodeContext::NodeContext()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>arm_compute/graph/<a class="el" href="_node_context_8h_source.xhtml">NodeContext.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1graph.xhtml">graph</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1graph_1_1_node_context.xhtml">NodeContext</a></li>
    <li class="footer">Generated on Fri Mar 2 2018 12:37:59 for Compute Library by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
